package com.junction.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.junction.bean.User;
import com.junction.service.UserService;

@RestController
public class UserController {

	@Autowired
	private UserService service;

	@GetMapping("/getUser")
	public User getUserInfo(int id) {
		return service.getUserInfo(id);
	}

}
